package cn.com.zcode.dic.service;

import java.util.List;

import cn.com.zcode.core.service.BaseServiceSupport;
import cn.com.zcode.dic.dao.DictionaryDao;
import cn.com.zcode.dic.model.Dictionary;

public class DictionaryServiceImpl extends BaseServiceSupport<DictionaryDao> implements DictionaryService {

	@Override
	public List<Dictionary> findInitDictionary() {

		return this.mainDao.findInitDictionary();
	}

	@Override
	public List<Dictionary> findSubDictionarys(String code) {

		return this.mainDao.findSubDictionarys(code);
	}

	@Override
	public Dictionary addDictionary(Dictionary dic) {
		return this.mainDao.save(dic);
	}

}
